public class AliPay extends Payment {
    private String number;

    public AliPay(double amount, String number) {
        super(amount);
        this.number = number;
    }

    @Override
    public boolean processPayment() {
        System.out.println("使用支付宝支付 $" + getAmount() + " 到账户: " + number);
        return true;
    }
}

// WireTransfer.java (代码结构类似)
// WeixinPay.java (代码结构类似)